//
//  SRRemoveHandRingTableViewCell.m
//  SportRing
//
//  Created by icelee on 14-11-2.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "SRRemoveHandRingTableViewCell.h"
#import "UITextField(Additionals).h"

@interface SRRemoveHandRingTableViewCell()

@property (nonatomic, weak)IBOutlet UITextField *handRingIDTextField;
@property (nonatomic, weak)IBOutlet LGButton *handRingRemoveButton;
@property (nonatomic, weak)IBOutlet UIView *handRingRemoveBackgroundView;



@end

@implementation SRRemoveHandRingTableViewCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self.handRingIDTextField addLeftPadding:2];
}

- (void)setRemoveHandRing:(NSString *)handRing
{
    [_handRingIDTextField setText:handRing];
}

- (IBAction)removeHandRing:(id)sender
{
    if (_removeDelegate && [_removeDelegate respondsToSelector:@selector(removeHandRing:)])
    {
        [_removeDelegate removeHandRing:self.handRingIDTextField.text];
        
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
